import { TopbarModel } from "./topbarModel";
import { loginName, logoutName, userTreeName } from "@/pages/identities/routes/routesNames";

export async function getTopbarData(): Promise<TopbarModel> {
    const model: TopbarModel = {
        Items: [
            {
                Title: "主页",
                Link: "/",
            },
            {
                Title: "用户",
                Link: {name: userTreeName},
            },
            {
                Title: "身份",
                SubItems:[
                    {
                        Title: "登录",
                        Link: {name: loginName},
                    },
                    {
                        Title: "退出",
                        Link: {name: logoutName}
                    }
                ]
            }
        ]
    }
    return model;
}